package com.ruiysoft.entity.order;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author WenJialu
 * @since 2018-10-28
 */
@TableName("order_operate_record")
public class OrderOperateRecord extends Model<OrderOperateRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("order_id")
    private Long orderId;

    @TableField("order_no")
    private String orderNo;

    /**
     * 1 订单生成
            2 用户付款
            3 用户已付款 平台确认
            4 平台已确认付款 商铺确认
            5 发货
            6 确认收货
            7 收货
            11 申请换货
            12 商铺确认换货
            21 申请退货
            22 商铺确认退货
            23 商铺退款
            97 订单取消
            98 订单关闭
            99 订单完结
     */
    @TableField("operate_type")
    private Integer operateType;

    @TableField("create_time")
    private Date createTime;

    /**
     * 000000系统操作(超时等。。)
     */
    @TableField("operator_id")
    private Long operatorId;

    public Long getId() {
        return id;
    }

    public OrderOperateRecord setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getOrderId() {
        return orderId;
    }

    public OrderOperateRecord setOrderId(Long orderId) {
        this.orderId = orderId;
        return this;
    }
    public String getOrderNo() {
        return orderNo;
    }

    public OrderOperateRecord setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }
    public Integer getOperateType() {
        return operateType;
    }

    public OrderOperateRecord setOperateType(Integer operateType) {
        this.operateType = operateType;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public OrderOperateRecord setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public Long getOperatorId() {
        return operatorId;
    }

    public OrderOperateRecord setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderOperateRecord{" +
        "id=" + id +
        ", orderId=" + orderId +
        ", orderNo=" + orderNo +
        ", operateType=" + operateType +
        ", createTime=" + createTime +
        ", operatorId=" + operatorId +
        "}";
    }
}
